package com.mfrx.web.socket.controller;

import com.mfrx.web.socket.service.impl.WebSocketServerServiceImpl;
import org.springframework.stereotype.Component;

import javax.websocket.server.ServerEndpoint;

/**
 * @author zp
 * @version 1.0
 * @description: 继承WebSocketServerSupport轻松实现websocket
 * 亦可以重写WebSocketServerSupport类里的方法
 * @date 2023/6/9 19:25
 */
@ServerEndpoint("/websocket/{userId}")
@Component
public class WebSocketController extends WebSocketServerServiceImpl {
    //可打开websocket在线测试地址，输入地址ws://localhost:8088/websocket/1即可进行测试
    //实现方法均在WebSocketServerServiceImpl类里，没错目的就是让你直接集成即可使用



}
